<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>首页</title>
	<link rel="stylesheet" href="/Public/css/bootstrap.min.css" />
	<link rel="stylesheet" href="/Public/css/common.css" />
	<link rel="stylesheet" href="/Public/admin/admin.css" />
	<!-- style start -->
	
    <style>
        .table th{width: 140px;text-align:right;padding-right:20px;}
        .table td{width: auto;}  

    </style>

</head>
<body>
<!-- header start -->
<nav class="navbar navbar-inverse  ">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">JiyCms</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li class="active"><a href="#">起始页</a></li>
				<li><a href="#about">系统</a></li>
				<li><a href="#contact">内容管理</a></li>
				<li><a href="#contact">统计</a></li>
			</ul>
		</div><!--/.nav-collapse -->
	</div>
</nav>
<!-- end header -->

<!-- content start -->
	<div class="content">
		<div class="container">
			<!-- 左边菜单 -->
			<div class="col-sm-3 col-md-2 sidebar">
				 <div class="nav-bar">
	 <a href="/admin.php/Index" class="nav-item">起始页</a>
	 <a href="<?php echo U('System/index');?>" class="nav-item">系统管理</a>
	 <a href="<?php echo U('Admin/index');?>" class="nav-item">管理员</a>
	 <a href="<?php echo U('Admin/role');?>" class="nav-item">管理员角色</a>
	 <a href="<?php echo U('Contents/index');?>" class="nav-item">文章列表</a>
	 <a href="<?php echo U('Contents/classify');?>" class="nav-item">文章分类</a>
	 <a href="<?php echo U('Notice/index');?>" class="nav-item">公告管理</a>
	 <a href="<?php echo U('Product/index');?>" class="nav-item">产品管理</a>
	 <a href="<?php echo U('Menu/index');?>" class="nav-item">导航管理</a>
	 <a href="<?php echo U('Banner/index');?>" class="nav-item">广告管理</a>
	 <a href="<?php echo U('Member/index');?>" class="nav-item">会员管理</a>
	 <a href="<?php echo U('Single/index');?>" class="nav-item">单页管理</a>
 </div>
			</div>
			<!--右边内容-->
			<div class="col-md-9">
				 
    <ol class="breadcrumb">
      <li><a href="/admin.php/index">起始页</a></li> 
      <li class="active">文章分类</li>
    </ol> 
    <div id="tabsContens" class="tab-content">
        <!-- 基本配置 --> 
        <div class="head-box clearfix" style="padding:10px 0;background:#f3f3f3;">
                <input type="hidden" name="type" value="links" />
                <div class="col-sm-6">
                    <a href="/admin.php/Contents/add_classify" class="btn btn-info">新增</a> 
                </div>
                <div class="col-sm-6 form-inline"> 
                    <div class="input-group">
                        <input type="text" class="form-control" placeholder="关键词" >
                    </div>
                    <button class="btn btn-info" >搜索</button> 
                </div> 
        </div>
        <div class="panel">
            <div class="panel-header">

            </div>
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th style="width:40px;">#</th>
                    <th>分类名称</th> 
                    <th>上级</th>
                    <th>简述</th>
                    <th style="width:50px;">状态</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
	                <?php if(is_array($info["list"])): foreach($info["list"] as $key=>$val): ?><tr data-id="<?php echo ($val["classify_id"]); ?>">
		                    <td><?php echo ($val["classify_id"]); ?></td>
                            <td><?php echo ($val["classify_name"]); ?></td>
                            <td><?php echo ($val["pid"]); ?></td>
		                    <td><?php echo ($val["desc"]); ?></td>
		                    <td><span class="btn btn-<?php echo ($val['status']==1?'info':'danger'); ?>"><?php echo ($val['status']==1?'启用':'禁用'); ?></span></td>
		                    <td><?php echo (date("Y-m-d H:i:s",$val["create_time"])); ?></td>
		                    <td>
		                        <a href="/admin.php/Contents/add_classify?id=<?php echo ($val["classify_id"]); ?>" class="btn btn-info">编辑</a>
		                        <a href="" class="btn btn-danger">删除</a>
		                    </td>
		                </tr><?php endforeach; endif; ?>
                </tbody>
            </table>
        </div>
        
    </div>  

			</div>
		</div>
	</div>
<!-- end content -->

<!-- footer start -->

	<div class="footer">
		<div class="container">底部信息</div>
	</div>
<!-- end footer -->

<!-- script start -->
<script src="/Public/js/jquery-1.11.3.min.js"></script>	
<script src="/Public/js/bootstrap.min.js"></script>	

<script>
     

</script>


</body>
</html>